package cn.tedu.csmall.server.repo; 
 /*
 @Time: 2022/8/25 10:37
 @Author:GShuai
 @File:ICategoryRepository.class
 @Software:IntelliJ IDEA
*/

import cn.tedu.csmall.server.pojo.vo.CategoryDetailVO;
import cn.tedu.csmall.server.pojo.vo.CategoryListItemVO;

import java.util.List;

public interface ICategoryRepository {

    String KEY_PREFIX_BRAND_ITEM="category:item:";
    String KEY_BRAND_LIST = "category:list";

    void put(CategoryDetailVO categoryDetailVO);

    CategoryDetailVO get(Long id);

    void deleteItem(Long id);

    void putList(List<CategoryListItemVO> list);

    List<CategoryListItemVO> getList();

    void deleteList();
}
